package com.ygqh.baby.service;

import java.util.List;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgStock;
import com.ygqh.baby.po.YgStockLog;

public interface YgStockLogService {

	List<YgStockLog> find();

	int findCount();

	YgStockLog findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgStockLog ygStockLog);

	int update(YgStockLog ygStockLog);

	int saveOrUpdate(YgStockLog ygStockLog);

	ResultSet<YgStockLog> search(QueryInfo queryInfo, String q);

	int addStockLogBatch(List<YgStock> newList, List<YgStock> oldList, String createBy, String remark);

	int addStockLogBatch(List<YgStock> stockList, String createBy, String remark);

	int addStock(YgStock stock, String createBy, String remark);

}
